﻿package com.yy.ui.events {
    import flash.events.*;

    public class UIEvent extends Event {

        public static const ROLL:String = "rollEvent";
        public static const ROLL_COMPLETE:String = "Roll_Complete";
        public static const CHANGE:String = "UIEvent.Change";
        public static const DRAG_ADD:String = "UIEvent.DragAdd";
        public static const DRAG_REMOVE:String = "UIEvent.DragRemove";
        public static const MOUSE_ANIMATION_STOP:String = "Mouse_animation_stop";
        public static const POPUP_COMPLETE:String = "Popup_complete";
        public static const POPUP_CLOSE:String = "Popup_close";
        public static const POPUP_WINDOW:String = "Popup_window";
        public static const DIALOG_OK:String = "Dialog_OK";
        public static const DIALOG_CANCEL:String = "Dialog_Cancel";
        public static const DIALOG_CLOSE:String = "Dialog_Close";
        public static const LISTITEM_CLICK:String = "ListItem_Click";
        public static const LISTITEM_SELECTED_CHANGE:String = "listitem_selected_change";
        public static const LIST_CLICK:String = "list_click";
        public static const SELECTED_INDEX_CHANGE:String = "selected_index_change";
        public static const LIST_DATA_CHANGE:String = "list_data_change";
        public static const TAB_CLICK:String = "tab_click";
        public static const SCREENPANEL_OPEN:String = "screenPanel_open";
        public static const SCREENPANEL_COMPLETE:String = "screenPanel_complete";
        public static const SCREENPANEL_CLOSE:String = "screenPanel_close";
        public static const LIST_ROLL_COMP:String = "listRollComp";

        private var _data:Object;

        public function UIEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:Object=null){
            super(_arg1, _arg2, _arg3);
            this.data = _arg4;
        }
        public function set data(_arg1:Object):void{
            this._data = _arg1;
        }
        public function get data():Object{
            return (this._data);
        }
        override public function clone():Event{
            var _local1:UIEvent = new UIEvent(type, bubbles, cancelable);
            _local1.data = this.data;
            return (_local1);
        }

    }
}